define(
	[
		'require',
		'broada/ui/dialog',
		'apm/ui/grid',
		'apm/ui/business_time_ranges',
		'../../business/js/business_config_threshold'
	],
	function(require){
		var View = Ember.View.extend({
			Grid: require('apm/ui/grid'),

			Dialog: require('broada/ui/dialog'),

			TimeRanges: require('apm/ui/business_time_ranges'),

			ThresholdConfig: require('../../business/js/business_config_threshold').extend({
				actions: {
					saved: function(threshold){
						var me = this;
						var ctrl = this.get('_parentView.controller');
						if(ctrl.get('curEditeThreshold')){
							ctrl.updateThreshold(threshold);
						}else{
							//ctrl.addThreshold(threshold);
						}
					}
				}
			}),

			didInsertElement:function(){
				this.$().find("input").val("");//每次访问设置关键字为空
			}
		});

		APM.ServiceServerNodeserverTypeView = View;

		return View;
	}
);